<?php

/**
 * This file is part of webman.
 *
 * Licensed under The MIT License
 * For full copyright and license information, please see the MIT-LICENSE.txt
 * Redistributions of files must retain the above copyright notice.
 *
 * @author    walkor<walkor@workerman.net>
 * @copyright walkor<walkor@workerman.net>
 * @link      http://www.workerman.net/
 * @license   http://www.opensource.org/licenses/mit-license.php MIT License
 */

use Webman\Route;

Route::disableDefaultRoute(); // 禁用默认路由

Route::get('', [app\controller\IndexController::class, 'index']);
Route::get('/', [app\controller\IndexController::class, 'index']);
Route::get('/about', [app\controller\IndexController::class, 'about']);
Route::get('/cate/{cate_name}', [app\controller\CategoryController::class, 'index']);
Route::get('/article/{id:\d+}', [app\controller\ArticleController::class, 'detail']);
Route::get('/search', [app\controller\ArticleController::class, 'search']);
Route::get('/archive', [app\controller\ArticleController::class, 'archive']);